Skip to content

Conversation

eLDoherty
Copy link
Contributor

@eLDoherty eLDoherty commented Jan 13, 2025

Replace .ToArray() with .ToList() to allow dynamic modification of network_nodes in MapGraphNetwork()

Replaced .ToArray() with .ToList() to resolve the issue where .Add() was called on a fixed-size array.

This preventing the "Collection was of a fixed size" error when called something like this var model = keras.Model(new Tensors(new Tensor[] { encoder_inputs, decoder_inputs }), outputs: decoder_dense);

Replace .ToArray() with .ToList() to allow dynamic modification of network_nodes

Replaced .ToArray() with .ToList() to resolve the issue where .Add() was called on a fixed-size array. Lists allow dynamic modification, preventing the "Collection was of a fixed size" error.
@eLDoherty eLDoherty changed the title Update Functional.cs fix: Resolve fixed-size array error in MapGraphNetwork() of Functional.cs Jan 14, 2025
@eLDoherty eLDoherty changed the title fix: Resolve fixed-size array error in MapGraphNetwork() of Functional.cs fix: Resolve fixed-size array error Jan 14, 2025
@eLDoherty eLDoherty closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant